const express = require('express');
const router = express.Router();
router.get('/', (req, res) => {
    req.session.user=null
    req.flash('success', '登出成功')
    res.redirect('login');
});

module.exports=router